package tv.acgn.advertisement.publish.core;

import javax.persistence.EntityManager;

import com.querydsl.jpa.impl.JPAQueryFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: advertisement-ad-publish-core
 * @description: QueryDSL 配置支持
 * @author: junG
 * @create: 2019-05-03 01:16
 **/
@Configuration
public class QueryDslConfig {

    @Bean
    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    public JPAQueryFactory jpaQueryFactory(EntityManager entityManager) {
        return new JPAQueryFactory(entityManager);
    }
}
